package com.rules.admin.expression;

import java.io.Serializable;

public abstract class BinaryExpression implements Expression, Serializable {
   protected Expression leftExpression;
   protected Expression rightExpression;

   public void accept(ExpressionVisitor visitor) {
      visitor.vistor(this);
   }

   public Expression getLeftExpression() {
      return this.leftExpression;
   }

   public void setLeftExpression(Expression leftExpression) {
      this.leftExpression = leftExpression;
   }

   public Expression getRightExpression() {
      return this.rightExpression;
   }

   public void setRightExpression(Expression rightExpression) {
      this.rightExpression = rightExpression;
   }
}
